//
//  StaffAndClientFirstSectionCell.m
//  QRMaster
//
//  Created by myApple on 16/5/1.
//  Copyright © 2016年 myApple. All rights reserved.
//

#import "StaffAndClientFirstSectionCell.h"

@interface StaffAndClientFirstSectionCell()
{
    UIImageView * imgView;
    UILabel * userNameLabel;
}

@end

@implementation StaffAndClientFirstSectionCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        //        btnToTimeId = [[NSMutableArray alloc]init];
        [self prepareView];
    }
    return self;
}

-(void)prepareView
{
    float x = 16;
    float y = 9;
    float width = 38;
    float height = 38;
    
    imgView = [[UIImageView alloc]initWithFrame:CGRectMake(x, y, width, height)];
    [self.contentView addSubview:imgView];
    
    
    x = 72;
    y = (56 - 20) / 2.0;
    width = UI_SCREEN_WIDTH - x - 20;
    height = 20;
    userNameLabel = [[UILabel alloc]initWithFrame:CGRectMake(x, y, width, height)];
    userNameLabel.font = [UIFont systemFontOfSize:16.0];
    userNameLabel.textColor = UIColorFromRGB(0x333333);
    [self.contentView addSubview:userNameLabel];
}

-(void)setImageNameString:(NSString *)imageNameString
{
    _imageNameString = imageNameString;
    imgView.image = [UIImage imageNamed:imageNameString];
}

-(void)setTitleString:(NSString *)titleString
{
    _titleString = titleString;
    userNameLabel.text = titleString;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
